package cn.dslcode.security.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.oauth2.provider.NoSuchClientException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by dongsilin on 2018/2/5.
 */
@Slf4j
@ControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler(NoSuchClientException.class)
    public void handleBaseBizException(HttpServletRequest request, NoSuchClientException e) {
        log.error("", e);
    }

}
